package com.peas.platform.module.icims.contract.initial.controller.vo;

import java.util.*;
import java.math.*;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("初始合同执行-补充协议")
public class ContractInitialSupplementalVo extends BaseVo {

    // 【初始合同表】
    @Comment(value = "合同ID")
    @ApiModelProperty(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    private Long contractInitialId;

    @Comment(value = "批次号")
    @ApiModelProperty(value = "批次号")
    @Size(max = 20, message = "批次号不能超过20个字符")
    private String batch;

    // 【用户表】
    @Comment(value = "补充协议经办人")
    @ApiModelProperty(value = "补充协议经办人")
    private Long supplementalUserId;

    // 【组织架构表】
    @Comment(value = "补充协议经办部门")
    @ApiModelProperty(value = "补充协议经办部门")
    private Long supplementalDepartmentId;

    @Comment(value = "补充协议编号")
    @ApiModelProperty(value = "补充协议编号")
    @NotBlank(message = "补充协议编号不能为空")
    @Size(max = 100, message = "补充协议编号不能超过100个字符")
    private String supplementalContractNo;

    @Comment(value = "补充协议名称")
    @ApiModelProperty(value = "补充协议名称")
    @Size(max = 200, message = "补充协议名称不能超过200个字符")
    private String supplementalContractName;

    @Comment(value = "补充协议增加金额")
    @ApiModelProperty(value = "补充协议增加金额")
    private BigDecimal supplementalAmount;

    @Comment(value = "补充原因")
    @ApiModelProperty(value = "补充原因")
    @Size(max = 1000, message = "补充原因不能超过1000个字符")
    private String supplementalReason;

    @Comment(value = "补充协议内容")
    @ApiModelProperty(value = "补充协议内容")
    private String supplementalContent;

    @Comment(value = "补充协议状态", enumType = "ContractInitialSupplementalState")
    @ApiModelProperty(value = "补充协议状态", notes = "枚举取值:ContractInitialSupplementalState")
    @Size(max = 20, message = "补充协议状态不能超过20个字符")
    private String state;

    // 非持久化
    private List<ContractInitialSupplementalAttachmentVo> attachments;

}
